import request from '@/utils/request'

// 查询工作工单列表
export function listErpWork(query) {
  return request({
    url: '/service/erpWork/list',
    method: 'get',
    params: query
  })
}

// 查询工作工单详细
export function getErpWork(id) {
  return request({
    url: '/service/erpWork/' + id,
    method: 'get'
  })
}

// 新增工作工单
export function addErpWork(data) {
  return request({
    url: '/service/erpWork',
    method: 'post',
    data: data
  })
}

// 修改工作工单
export function updateErpWork(data) {
  return request({
    url: '/service/erpWork',
    method: 'put',
    data: data
  })
}

// 删除工作工单
export function delErpWork(id) {
  return request({
    url: '/service/erpWork/' + id,
    method: 'delete'
  })
}
